package cloud.code.serverOne.web.provider;

import cloud.code.serverOne.web.service.ApiService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 服务提供一份
 * Created by zhanghaichao on 2019/12/10.
 */
@RestController
@RequestMapping("/provider/")
public class ProvideServiceImpl {

    @Resource
    private ApiService apiService;

    @RequestMapping("index")
    public String index() {
        return apiService.index();
    }

}
